﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;

namespace TSOL.FastSPWeb.ValueObjects
{
    internal enum FastUpdateAction { Add, Update, Delete, CreateSubWeb, StopQueue }

    internal class BaseFastSPActionQueue
    {
        public Guid ActionID;
        public string UserUniqueID = "";
        public SPUserToken UserToken;
        public Guid SiteGuid;
        public Guid WebGuid;
        public FastUpdateAction Action;
    }

    internal class FastCreateSubWebQueueClass : BaseFastSPActionQueue
    {
        public string WebUrl = "";
        public string Title = "";
        public string Description = "";
        public uint LCDID = 0;
        public string WebTemplateName = "";
        public bool UseUniquePermissions = false;
        public bool ConvertIfThere = false;
    }

    internal class FastSPItemQueueClass : BaseFastSPActionQueue
    {
        public Guid ListGuid;
        public SPItem Item;
    }
}
